sysroot: Cache deployment device/inode
authorColin Walters <walters@verbum.org>
Tue, 1 Jul 2025 14:54:52 +0000 (10:54 -0400)
committerColin Walters <walters@verbum.org>
Tue, 1 Jul 2025 17:15:34 +0000 (13:15 -0400)
commitd41c2c24b0aabc8e0e5aaa8387a6f38111b58f71
treef6823db27f276d7ff8d8521fab4c3a239a9d90de
parentdc455493a69bf0caa5a06ace39f9f03abd0b1351
sysroot: Cache deployment device/inode

This is a lot cleaner. In particular, it's prep
for having soft reboot finalize at shutdown time, because
we weren't correctly handling the staged deployment in
that case.

To implement this we need to basically stop using
ostree_deployment_new() in most places, and instead ensure that all
callers use this path which cache the device/inode.

Signed-off-by: Colin Walters <walters@verbum.org>
src/libostree/ostree-deployment-private.h
src/libostree/ostree-deployment.c
src/libostree/ostree-sysroot-cleanup.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c